package extend.animal;

public abstract class Pet extends Animal{
    String name;
    int love = 60;
    int health = 100;

    public void print() {
        System.out.println("name:" + name);
        System.out.println("love:" + love);
        System.out.println("health:" + health);

    }
    //抽象方法
    public abstract void test1();

    public Parent eat() {
        return null;
    }
}

class Animal{
    int y;
}

class Parent {
}

class Child1 extends Parent {

}

class Child2 extends Parent {

}
